package com.wzc.pet.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wzc.basic.domain.BaseDomain;
import com.wzc.org.domain.Shop;
import com.wzc.user.domain.User;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Pet extends BaseDomain {
    private String name; // 名字
    private BigDecimal costprice;
    private BigDecimal saleprice;

    private Long type_id;
    private PetType type;

    private String resources;
    private Integer state;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GTM+8")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GTM+8")
    private Date onsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GTM+8")
    private Date createtime = new Date();

    private Long shop_id; // 店铺id
    private Shop shop; // 店铺id对应的 店铺

    private Long user_id; // 领养人id
    private User user; // 领养人id对应的领养人

    private Long search_master_msg_id;
    // 详情对象，接收前端数据
    private PetDetail petDetail;
}
